// $codepro.audit.disable com.instantiations.assist.eclipse.analysis.audit.rule.effectivejava.alwaysOverridetoString.alwaysOverrideToString, spellCheckComments, spellCheckIdentifiers
/**
 * Package logging
 */
package teamrocket.logging; // $codepro.audit.disable packagePrefixNamingConvention


import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * This class is the logging system used for our System
 * @author James Zhang, Juan Llanes, Stephen Tapper, Will Barr
 * @version 1.0
 */
public class TestLogging {
	// Always use the classname, this way you can refactor
	/**
	 * Field LOGGER.
	 */
	private static final Logger LOGGER = TLogger.getInstance().getLogger();

	/**
	 * Method writeLog.
	 */
	public void writeLog() {
		// Set the LogLevel to Severe, only severe Messages will be written
		LOGGER.setLevel(Level.SEVERE);
		LOGGER.severe("100");
		LOGGER.warning("200");
		LOGGER.info("300");
		LOGGER.finest("400");

		// Set the LogLevel to Info, severe, warning and info will be written
		// Finest is still not written
		LOGGER.setLevel(Level.INFO);
		LOGGER.severe("900");
		LOGGER.warning("800");
		LOGGER.info("700");
		LOGGER.finest("600");
	}

	/**
	 * Method main.
	 * @param args String[]
	 */
	public static void main(String[] args) {
		final TestLogging logger = new TestLogging();
		logger.writeLog();
	}
}
